From 2cd5d9e5310475cf242d910d5d691a75bd8d8112 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timo=20R=C3=B6hling?= Date: Thu, 27 Jan 2022 12:38:59 +0100 Subject: [PATCH] Enable Vulkan on 64 bit architectures only Filament assumes that VkSurfaceKHR is a pointer type, which is only true on 64 bit architectures. Gbp-Dch: full --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/rules b/debian/rules index 60fabc3..5fec826 100755 --- a/debian/rules +++ b/debian/rules @@ -8,6 +8,13 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+all future=+lfs FILAMENT_VERSION := $(shell echo $(DEB_VERSION_UPSTREAM) | sed 's/[+~]dfsg[0-9]*$$//') FILAMENT_SOVERSION := $(shell echo $(FILAMENT_VERSION) | cut -d. -f1,2) +# Filament assumes that VkSurfaceKHR is a pointer type, which is only true on 64 bit +ifeq ($(DEB_HOST_ARCH_BITS),64) +SUPPORTS_VULKAN = ON +else +SUPPORTS_VULKAN = OFF +endif + %: dh $@ @@ -18,6 +25,7 @@ override_dh_auto_configure: -DFILAMENT_SKIP_SAMPLES=ON \ -DFILAMENT_ENABLE_JAVA=OFF \ -DUSE_STATIC_LIBCXX=OFF \ + -DFILAMENT_SUPPORTS_VULKAN=$(SUPPORTS_VULKAN) \ -DFILAMENT_VERSION=$(FILAMENT_VERSION) \ -DFILAMENT_SOVERSION=$(FILAMENT_SOVERSION) \ -DFILAMENT_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \ -- 2.30.2